package com.wkbb.common.enums;

public enum CommodityStatusEnum {

    /**
     * 开通
     */
    DREDGEPAY(1,"开通"),
    /**
     * 续费
     */
    RENEWPAY(2,"续费"),

    /**
     * 升级
     */
    UPGRATEPAY(3,"升级");


    private CommodityStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (CommodityStatusEnum commodityStatusEnum : CommodityStatusEnum.values()) {
            if (commodityStatusEnum.getValue().intValue()==value) {
                return commodityStatusEnum.getDesc();
            }
        }
        return null;
    }
}
